import Vue from 'vue'
import Vuex from 'vuex'
import salesmans from "./salesmans"
import Orders from "./orders/orders.js"
import customers from './modules/customers'

import Sellers from "./sellers/sellers.js"
import Types from "./types/types.js"
//保险产品
import insuresAdd from './insures/insuresAdd'
import insuresList from './insures/insuresList'
import insuresUpdate from './insures/insuresUpdate'

//管理员
import adminsLogin from './admins/adminsLogin'
import admins from './admins/admins.js'

//销售员
import salesmansLogin from './salesmans/salesmansLogin'
// import salesmans from './salesmans/salesmans'
// 理赔
import claims from './claims/claims'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  //引入orders
  modules: {
    Orders,
    customers,
    admins,
    salesmans,
    Sellers,
    Types,
    insuresAdd,
    insuresList,
    insuresUpdate,
    adminsLogin,
    salesmansLogin,
    claims
  }
})